home *** CD-ROM | disk | FTP | other *** search
- Path: news1.radix.net!news
- From: jfw@radix.net (Jim Ward)
- Newsgroups: comp.lang.c
- Subject: Sorting a directory
- Date: 20 Feb 1996 02:27:21 GMT
- Organization: RadixNet Internet Services
- Message-ID: <4gbbi9$c7s@news1.radix.net>
- NNTP-Posting-Host: dialin4.annex1.radix.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.7
-
- I want to retrieve a sorted list of files in a directory.
- I am using UNIX, on an HP, and I found by reading the
- manpages I could use scandir() and alphasort() to perform the task
- (these seem to be old BSD functions). When
- I try to move the same code over to a SUN, the linker
- (for the SunOS 5.4 cc) can't find these functions.
- Is there a library that I can link with that provides them?
- Or have they been dropped as the UNIX world moves from
- BSD to System V? Is there something in the C library that
- I should be using instead?
-
- Sincerely,
-
- Jim Ward
-
-